package com.atguigu.gmall.feign.product;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.product.SpuInfo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient("service-product") //声明要调用的远程
public interface SpuFeignClient {

    @GetMapping("admin/product/{page}/{limit}")
    Result<Page<SpuInfo>> spuInfoPageList(
            @RequestParam(value = "category3Id", required = true) long category3Id,
            @PathVariable("page") int page,
            @PathVariable("limit") long limit);


}
